/**
 * @author 		Yuri Visser
 * @created 	25/AUG/2010
 * @UPDATED		 
 * @comments	Mediator to the app doc class
 * @TODO
 **/

package com.redspace.urbanexpressions.view {
	
	import com.theredspace.attask.air.model.WebserviceProxy;
	
	import org.puremvc.as3.interfaces.IMediator;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	public class ApplicationMediator extends Mediator implements IMediator {
		
		//-------------------------------------------------
		//cononical name & constructor
		public static const NAME:String = "applicationMediator";
		
		public function ApplicationMediator(viewComponent:Object) {
			super(NAME, viewComponent);
		}
		//-------------------------------------------------
		
		override public function onRegister():void {
			//retreive references to frequently used proxies
			
			//register lsiteners from the view components
		}
		
		override public function listNotificationInterests():Array {
			return	[
				//ApplicationFacade.SHOW_DEBUG_TXT
			];
		}
		
		override public function handleNotification(note:INotification):void {
			var noteData:Object = note.getBody();
			/*
			switch(note.getName()) {
				
			}
			*/
		}
		
		protected function get app():Main {
			return viewComponent as Main
		}
		
		//-------------------------------------------------
		
		
		//-------------------------------------------------
		//cached proxies
		private var webserviceProxy:WebserviceProxy;
	}
}